//
//  BookCateViewController.m
//  iBook
//
//  Created by wangjing on 14/12/6.
//  Copyright (c) 2014年 wikiflyer. All rights reserved.
//

#import "BookCateViewController.h"

@interface BookCateViewController ()

@end

@implementation BookCateViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    [self initNavigation];
}
//初始化导航栏
-(void)initNavigation{
    self.navigationItem.title = @"精选集";
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"完成" style:UIBarButtonItemStyleDone target:self action:@selector(didSelectDone)];
    UIBarButtonItem *leftBtn =[[UIBarButtonItem alloc]initWithTitle:@"编辑" style:UIBarButtonItemStylePlain target:self action:nil];
    leftBtn.enabled = NO;
    self.navigationItem.leftBarButtonItem =leftBtn;
}
//点击完成按钮
-(void)didSelectDone{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
